void errorhashrequired(int l, string s) {
  TypeError = 1;
  cout<<"L. "<<l<<": Non-hash right operand used at '"<<s<<"'."<<endl;
}

void errorinvalidhashkey(int l) {
  TypeError = 1;
  cout<<"L. "<<l<<": Hash key type mismatch."<<endl;
}

void errorinvalidhashconstructor(int l) {
  TypeError = 1;
  cout<<"L. "<<l<<": Hash constructor list is empty or heterogeneous."<<endl;
}
